# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=mate-indicator-applet
pkgver=1.24.0
pkgrel=0
pkgdesc="A small applet to display information from various applications consistently in the panel"
url="https://github.com/mate-desktop/mate-indicator-applet"
arch="all !s390x !mips !mips64" # mate-panel -> mate-desktop
license="GPL-3.0-or-later AND LGPL-2.1-or-later"
makedepends="autoconf automake libtool mate-common glib-dev
	gtk+3.0-dev mate-panel-dev intltool libindicator-dev"
subpackages="$pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/mate-indicator-applet-$pkgver.tar.xz"

prepare() {
	default_prepare
	NOCONFIGURE=1 ./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--enable-static=no \
		--libexecdir=/usr/libexec \
		--sysconfdir=/etc \
		--prefix=/usr
	make

}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="0e82f572c1855c8623e537a45c2c0c0b98d3d642e46333eedc16c26607205293098a062008d0e568890ffdf6b8dc4c30a7f5e2e41a150f940917b3671783e413  mate-indicator-applet-1.24.0.tar.xz"
